﻿using EMoney.IStock.Client.Business.Boot;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace EMoney.IStock.Client.Web.Controllers
{
    public class BootController : Controller
    {
        //
        // GET: /Boot/

        /// <summary>
        /// 开机画面
        /// </summary>
        /// <returns></returns>
        public ActionResult Index()
        {
            int userid = 0;

            string reqUid = Request["uid"];

            if (!string.IsNullOrEmpty(reqUid))
            {
                int.TryParse(reqUid,out userid);
            }

            BootBll bootBll = new BootBll();

            ViewBag.BigEvent = bootBll.GetBigEvent();   //大事件
            ViewBag.Weather = bootBll.GetWeather();     //股市行情
            ViewBag.QsRs = bootBll.GetQsRs();           //强势板块
            ViewBag.HotStock = bootBll.GetHotStock();   //热门个股
            ViewBag.UserFunc = bootBll.GetUserFunc(userid);  //周周赠送

            ViewBag.Sid = Request["sid"];

            return View();
        }
    }
}
